#include "MouseDispatch.h"

MouseDispatch::MouseDispatch(Dispatch *init_dispatch)
{
	dispatch = init_dispatch;
}

MouseDispatch::~MouseDispatch(void)
{
}

void MouseDispatch::MouseMove(int x, int y)
{
	//
	//Sends the event to dispatch
	//
	dispatch->dispatchMouseMotionEvent(x, y);

}

void MouseDispatch::MousePress(int button, int state, int x, int y)
{
	//
	//Sends the event to dispatch
	//
	dispatch->dispatchMouseEvent(button, state, x, y);
	

}


